/* static/style.css */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes full height */
}

.header {
    background-color: #1890ff; /* Blue header */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.4em;
}

.header .add-icon {
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.main-content {
    flex-grow: 1; /* Allow content to fill available space */
    padding: 20px;
    padding-bottom: 80px; /* Add padding to avoid overlap with bottom nav */
}

#token-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.token-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    position: relative;
    overflow: hidden; /* To contain the progress bar */
}

.token-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-info .dot {
    width: 10px;
    height: 10px;
    background-color: #1890ff;
    border-radius: 50%;
}

.account-name {
    font-size: 0.9em;
    color: #555;
}

.pin-button {
    background-color: #f0f2f5;
    border: 1px solid #d9d9d9;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
}

.token-card-body {
    text-align: center;
    margin-bottom: 15px;
}

.lock-icon {
    width: 50px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px;
    opacity: 0.6;
}

.token-code {
    font-size: 2.5em; /* Large code */
    font-weight: bold;
    color: #1890ff; /* Blue code */
    letter-spacing: 4px; /* Spacing between digits */
    margin-bottom: 15px;
    font-family: 'Courier New', Courier, monospace;
}

.token-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px; /* Space before progress bar */
}

.progress-bar {
    width: 100%;
    height: 4px; /* Thinner progress bar */
    background-color: #e0e0e0;
    position: absolute;
    bottom: 0;
    left: 0;
}

.progress-bar-inner {
    height: 100%;
    background-color: #1890ff; /* Blue progress */
    width: 100%; /* Initial width */
    transition: width 1s linear; /* Smooth transition */
    border-radius: 0 2px 2px 0; /* Slight rounding */
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-size: 0.8em;
}

.nav-item.active {
    color: #1890ff; /* Active color */
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    fill: currentColor; /* Use text color for SVG fill */
}

/* Add Account Link Styling (Optional, if you keep the link) */
.add-link-container {
    text-align: center;
    margin-top: 20px;
}

.add-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.add-link:hover {
    background-color: #096dd9;
}
